<?php
$con = mysql_connect("120.194.12.194:3307", "root", "bmtdb");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

$db_selected = mysql_select_db("bmtdb",$con);
mysql_query("set names 'gbk'");  
$sql = "SELECT id, name FROM data_abroadstudy_agency_info;";
$result = mysql_query($sql,$con);
 while($row = mysql_fetch_array($result ))
$records[] = $row;
var_dump($records);
mysql_close($con);
?>